<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 对于超链接中的鼠标移入和点击两个状态 在其他标签中也支持 -->
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: red;
        }

        /* 鼠标移入div时 */
        .box:hover {
            background-color: green;
            font-size: 150px;
        }

        /* 鼠标点击时 */
        .box:active {
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="box">666</div>
    <div class="box">666</div>
    <div class="box">666</div>
    <div class="box">666</div>
    <div class="box">666</div>

</body>

</html>